define(['WebPDF'], function (WebPDF) {
	'use strict';
	WebPDF.provider('i18n', [function () {
		this.init = function(options, callback){
			var op =  {
	            getAsync: false,
	            lng: options.language,
	            load: "current",
	            useCookie: false,
	            useDataAttrOptions: true,
	            defaultValueFromContent: false,
	            fallbackLng: false,
	            useLocalStorage: false, /* set true for production*/
	            localStorageExpirationTime: 86400000, // in ms, default 1 week
	            resGetPath: options.baseUrl + '__ns__-__lng__.json?' + new Date().getTime()
	        };
			i18n.init(op, function(){
				if (typeof callback == "function") {
					callback();
				}
			});
		};	

		
		this.$get = [function() {
			var that = this;
			return {				
			};
		}];
	}]);
});
